package com.cg.controller;

import com.cg.service.EasyExcelService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>Title: EasyExcelController </p>
 * <p>Description: TODO </p>
 * Package: com.cg.controller
 * Copyright: Copyright(c) 2020 Hjfruit All Rights Reserved
 * Company: Hjfruit
 * Software: pitaya
 * Date: 2021/5/24 16:03
 *
 * @author cheyinbo
 * @version 1.0.0.0
 */
@RestController
@RequiredArgsConstructor
@CrossOrigin
@Slf4j
public class EasyExcelController {

    private final EasyExcelService easyService;

    @GetMapping("/generateExcel")
    public boolean generateExcel(){
        return easyService.generateExcel();
    }

}
